﻿@model Finance.Web.Models.Bank

<form class="form-horizontal" name="bankForm">
  <div class="form-group">
    <label for="bankName" class="col-sm-2 control-label">Наименование</label>
    <div class="col-sm-8">
      <input class="form-control" name="Name" data-ng-model="bank.Name" type="text" id="bankName" required>
      <span data-ng-show="bankForm.Name.$error.server">{{bankForm.Name.textErrors.server}}</span>
    </div>
  </div>
  <div class="form-group">
    <label for="bankInfo" class="col-sm-2 control-label">Информация</label>
    <div class="col-sm-8">
      <textarea class="form-control" name="Info" data-ng-model="bank.Info" id="bankInfo" required></textarea>
      <span data-ng-show="bankForm.Info.$error.server">{{bankForm.Info.textErrors.server}}</span>
    </div>
  </div>
  <div class="form-group">
    <div class="col-sm-offset-2 col-sm-2">
      <button type="submit" data-ng-click="createBank()" class="btn btn-default">Сохранить</button>
    </div>
    <div class="col-sm-2">
      <button data-ng-click="cancel()" class="btn btn-default">Отмена</button>
    </div>
  </div>  
</form>